/* JavaLog - package tracker 
 * 
 * Copyright (C) 2009  Allyson Lima, Diego Pedro, Victor Freire
 * 
 * This program is free software: you can redistribute it and/or modify it under
 * the terms of the GNU General Public License as published by the Free Software 
 * Foundation, either version 3 of the License, or (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful, but WITHOUT ANY
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
 * PARTICULAR PURPOSE.  See the GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License along with this 
 * program.  If not, see <http://www.gnu.org/licenses/>.
 */

package br.edu.ufcg.ccc.javalog;

import java.util.Deque;
import java.util.LinkedList;

import br.edu.ufcg.ccc.javalog.model.Data;
import br.edu.ufcg.ccc.javalog.view.MainView;
import br.edu.ufcg.ccc.javalog.view.View;


/**
 * Main class.
 * @author Allyson Lima, Diego Pedro, Victor Freire
 * @version 11/10/09
 */
public class Main {
	private static final Deque<View> viewStack = new LinkedList<View>(); 
	
	public static void main(String[] args) {
		// Initialize model
		Data.init();
		
		// Start view
		viewStack.add(new MainView());
		while(!viewStack.isEmpty()) {
			if(!viewStack.peekLast().view())
				viewStack.pollLast();
		}
	}
}
